package org.jsrml.core.supplier.qo;

import org.jsrml.common.persistence.BaseQO;
import org.jsrml.common.persistence.query.QueryCondition;
import org.jsrml.common.persistence.query.QueryConditionType;
import org.jsrml.common.persistence.query.QueryConfig;

@QueryConfig(daoBeanId="contactService")
public class ContactQO extends BaseQO<String> {
	
	@QueryCondition(name = "vendor", type = QueryConditionType.LEFT_JOIN)
	private VendorQO vendorQO;
	
	@QueryCondition(name = "vendor", type = QueryConditionType.FETCH_EAGER)
	private Boolean fetchVendor;
	
	@QueryCondition(name="name",type=QueryConditionType.LIKE_ANYWHERE)
	private String name;

	/**
	 * 主要联系人，0：是，1：不是
	 */
	@QueryCondition(name = "mainLink")
	private Integer mainLink;
	
	@QueryCondition(name = "status.remove")
	private Boolean remove;
	
	public VendorQO getVendorQO() {
		return vendorQO;
	}

	public void setVendorQO(VendorQO vendorQO) {
		this.vendorQO = vendorQO;
	}

	public Boolean getFetchVendor() {
		return fetchVendor;
	}

	public void setFetchVendor(Boolean fetchVendor) {
		this.fetchVendor = fetchVendor;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getRemove() {
		return remove;
	}

	public void setRemove(Boolean remove) {
		this.remove = remove;
	}

	public Integer getMainLink() {
		return mainLink;
	}

	public void setMainLink(Integer mainLink) {
		this.mainLink = mainLink;
	}
	
}
